package com.nanjia.boot.myflow.outboundorderdetail.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nanjia.boot.common.result.Result;
import com.nanjia.boot.myflow.outboundorderdetail.model.entity.OutboundOrderDetail;
import com.nanjia.boot.myflow.outboundorderdetail.model.form.OutboundOrderDetailForm;
import com.nanjia.boot.myflow.outboundorderdetail.model.query.OutboundOrderDetailQuery;
import com.nanjia.boot.myflow.outboundorderdetail.model.vo.OutboundOrderDetailVO;

/**
 * 出库明细服务类
 *
 * @author 周洋
 * @since 2025-08-22 18:01
 */
public interface OutboundOrderDetailService extends IService<OutboundOrderDetail> {

    /**
     *出库明细分页列表
     *
     * @return {@link IPage<OutboundOrderDetailVO>} 出库明细分页列表
     */
    IPage<OutboundOrderDetailVO> getOutboundOrderDetailPage(OutboundOrderDetailQuery queryParams);

    /**
     * 获取出库明细表单数据
     *
     * @param id 出库明细ID
     * @return 出库明细表单数据
     */
     OutboundOrderDetailForm getOutboundOrderDetailFormData(Long id);

    /**
     * 新增出库明细
     *
     * @param formData 出库明细表单对象
     * @param ipAddr
     * @return 是否新增成功
     */
//    Result saveOutboundOrderDetail(OutboundOrderDetailForm formData, String ipAddr);

    /**
     * 修改出库明细
     *
     * @param id   出库明细ID
     * @param formData 出库明细表单对象
     * @return 是否修改成功
     */
    boolean updateOutboundOrderDetail(Long id, OutboundOrderDetailForm formData);

    /**
     * 删除出库明细
     *
     * @param ids 出库明细ID，多个以英文逗号(,)分割
     * @return 是否删除成功
     */
    boolean deleteOutboundOrderDetails(String ids);

}
